package com.woniuxy.permission.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.dto.SelectAllDto;
import com.woniu.form.*;
import com.woniuxy.permission.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 管理原详情表 服务类
 * </p>
 *
 * @author author
 * @since 2025-05-13
 */
public interface IPermissionService extends IService<Permission> {

    Permission login(LoginForm lf) throws Exception;

    void insertAdminInfo(AdminInfoForm aif)throws Exception;

    boolean checkDuplicateInfo(Integer adminId, String username, String phone);

    void updateAdminInfo(UpdateAdminInfoForm uaif);

    void deleteAdminInfoById(Integer adminId);

    IPage<SelectAllDto> selAll(SelectAllForm selectAllForm);

    boolean updatePassword(Integer adminId, UpdatePasswordForm updatePasswordForm) throws Exception;

    Permission getFindById(Integer adminId);

    Integer getCustomerService();
}
